package com.woniuxy.mapper.custom;

import com.woniuxy.entity.Emp;
import com.woniuxy.entity.Hospital;
import com.woniuxy.entity.HospitalExample;
import com.woniuxy.entity.User;
import com.woniuxy.mapper.HospitalMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.tomcat.util.http.fileupload.util.LimitedInputStream;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomHospitalMapper extends HospitalMapper {
    Integer findEmpIdByHid(Integer hId);
    List<Hospital> findAllHospital();
    List<Hospital> findByLike(String str);

    int insertDockUser(Integer hId,Integer empId);
    int updateDockUserByHid(Integer userId,Integer hId);

    @Select("select h_id from dockuser")
    List<Integer> findAllDockUserHid();

}